<%-- 
    Document   : npregunta
    Created on : 19/01/2013, 10:33:05 AM
    Modified on: 06/02/2013, 08:59:05 PM
    Author     : Rafael Ponce
--%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
 
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<script type="text/javascript">
    /*
    function deleteUsuario() {
        if (confirm("Desea eliminar este usuario")) {
            return true;
        }
        return false;
    }
    */
</script>

<div class="container">
    <h1>Nueva Pregunta</h1><br/>
    <form:form action="nueva" method="post" commandName="entrada" cssClass="form-horizontal">
        <div class="row">
            <div class="control-group">
                <label style="margin-left: 20px;">Titulo para tu pregunta:</label>
                <div class="controls" style="margin-left: 20px;">
                    <form:input path="titulo"></form:input>
                    <form:errors path="titulo" cssstyle="color:red"></form:errors>
                </div>
            </div>
            <div class="control-group">
                <label style="margin-left: 20px;">Descripcion:</label>
                <div class="controls" style="margin-left: 20px;">
                    <form:textarea path="descripcion" rows="4" cols="70"></form:textarea>
                    <form:errors path="descripcion" cssstyle="color:red"></form:errors>
                </div>
            </div>                
        </div>
        <div class="actions" style="margin-left: 20px;">
            <input name="" value="Enviar Pregunta" type="submit" class="btn btn-primary">            
        </div>                
    </form:form>
</div>
